<?php
require './include/common.inc.php';
require_once MOD_ROOT.'/include/announce.class.php';
require_once MOD_ROOT.'/include/global.func.php';

$action = 'a'.$announceid;

switch($action)
{
	case 'a1':
		$arr = bubble_sort(array(0,5,4,6,3,7,3,8,2323,23,2));
		print_r($arr);
	break;
	case 'a2':
		$str = range(1,100);
		$num = 6;
		$sum = 90;
		//$arr6 = array_rand($str,$num);//获取6个随机数
		$i = 0;
		$arr=array();
		for($i=0;$i<$num;$i++){
			$arr[$i]=fn_getRand($str,$sum,$arr);
		}
		print_r($arr);
		echo ko;
	break;
}
?>